import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {RedeemDetailComponent} from './redeem-detail/redeem-detail.component';
import {PointRechargeComponent} from './point-recharge/point-recharge.component';
import {RedeemRuleComponent} from "./redeem-rule/redeem-rule.component";
import {ChatPayComponent} from "./chat-pay/chat-pay.component";

const routes: Routes = [
    {path:'redeem-detail',component:RedeemDetailComponent},
    {path:'point-recharge',component:PointRechargeComponent},
    {path:'redeem-rule',component:RedeemRuleComponent},
    {path:'chat-pay/:rechargeAmount',component:ChatPayComponent}
]

@NgModule({
    imports:[RouterModule.forChild(routes)],
    exports:[RouterModule]
})
export class RedeemRoutingModule { }
